<template>
    <div>
        <div class="title">{{desc.title}}</div>
        <div class="content" v-html="desc.content"></div>
    </div>
</template>

<script>
export default {
    data(){
        return {
            id:this.$route.params.id,
            desc:{}
        }
    },
    created(){
        this.getdesc()
    },
    methods:{
        getdesc(){
            this.$http.get('api/goods/getdesc/'+this.id).then(result => {
                if(result.body.status == 0){
                    this.desc = result.body.message[0];
                }
            })
        }
    }
}
</script>

<style lang="scss" scope>
    .title{
        font-size: 14px;
        color: aqua;
        padding: 10px 0;
        text-align: center;
        border-bottom: 1px solid #ccc;
    }
    .content{
        img{
            width: 100%;
        }
    }
</style>
